package service;

import java.util.List;

import model.Position;
import dao.PositionDao;

public class PositionService extends BaseService {

	private PositionDao positionDao;

	public void setPositionDao(PositionDao positionDao) {
		this.positionDao = positionDao;
	}

	public List<Position> getAll() {
		List<Position> position = positionDao.getAll();
		return position;
	}
	
	public void saveOrUpdate(Position position){
		positionDao.saveOrUpdate(position);
	}
	
	public void delete(Integer id){
		positionDao.delete(id);
	}

}
